package com.jthinker.blog.dao.impl;

import com.jthinker.blog.bean.entity.Menu;
import com.jthinker.blog.dao.MenuDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * User: Gang Chen
 * Date: 2015/6/28 13:22
 */
@Repository("menuDao")
public class MenuDaoImpl extends BaseDaoImpl<Menu, Long> implements MenuDao
{
    @Override
    public List<Menu> listAllBySort()
    {
        String hql = "from Menu";
        return list(hql, -1, -1, "sort", "asc");
    }
}
